package com.similarworld.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import com.similarworld.type.CategoryStatus;

/**
 * Kategori entity
 * 
 * @author erdal.bitik
 * */

@Entity
@Table(name = "CATEGORIES")
public class Category extends AbstractModel {
	
	private static final long serialVersionUID = 1L;

	@Column(length=256)
	private String caption;

	@Column(length=1024)
	private String description;
	
	@Column(length=16)
	@Enumerated(value = EnumType.STRING)
	private CategoryStatus status;

	public Category() {
	}

	public String getCaption() {
		return caption;
	}

	public void setCaption(String caption) {
		this.caption = caption;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public CategoryStatus getStatus() {
		return status;
	}

	public void setStatus(CategoryStatus status) {
		this.status = status;
	}

}

